import request from '@/utils/request'

// 获取销售额统计
export function getSaleStatistics(collectType, start, end) {
  return request({
    method: 'get',
    url: `/api/order-service/report/amountCollect/${collectType}/${start}/${end}`
  })
}

// 销售量分布
export function getSaleDistribute(start, end) {
  return request({
    method: 'get',
    url: `/api/order-service/report/regionCollect/${start}/${end}`
  })
}

// 获取10个故障设备列表
export function getAbnormalDevice() {
  return request({
    method: 'get',
    url: '/api/status-service/status/top10'
  })
}
